/*
 * @Copyright: 2016 www.yyfax.com Inc. All rights reserved.
 */
package com.yyfax.pay.order.data.dao;

import java.util.List;

import com.yyfax.framework.dao.BaseDao;
import com.yyfax.pay.order.model.po.PayoutBatchOrderLogPO;

/**
 * 批量代付日志持久化接口
 *
 * @author buyi
 * @date 2017-04-12 11:09:15
 * @since 1.0.0
 */
public interface PayoutBatchOrderLogDao extends BaseDao<PayoutBatchOrderLogPO, Integer> {
	
	/**
	 * 根据主键获取实体
	 * 
	 * @user jiangmy
	 * @date 2017-04-12 11:09:15
	 * @since 1.0.0
	 * @param id 自增主键
	 * @param merchantCode 商户编号(为分表预留参数)
	 * @return
	 */
	public PayoutBatchOrderLogPO selectByIdAndMerchantCode(int id, String merchantCode) throws Exception;

	/**
	 * 查询列表
	 * 
	 * @author buyi
	 * @date 2017-04-20 11:00:52
	 * @since v1.0.0
	 *
	 * @param merchantCode
	 * @param payoutBatchOrderId
	 * @return
	 */
	public List<PayoutBatchOrderLogPO> selectListByPayoutBatchOrderId(String merchantCode, String payoutBatchOrderId);
}
